package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author chen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("info")
@ApiModel(value = "登录ip")
@SuppressWarnings("all")
public class Info {

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username; //用户民

    private String addr;  //所在城市名

    private String ip;   //登录者ip地址

    private String type;  //浏览器类型

    private String time;  //创建时间

    private String lastTime;  //最后一次登录时间

    @TableField(exist = false)
    private String nickname;   //昵称

    @TableField(exist = false)
    private String avatar;    //头像

    private Boolean enable; //是否禁用




}
